package org.br.erp.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@TableName("materialunitconvet")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="material对象", description="产品表")
@Entity
@Table(name = "materialunitconvet")
public class MaterialUnitConvet {

    @Id
    @Column(length = 32)
    private String id;

    @Column(length = 32)
    private String parentid;

    @Column(length = 32)
    private String firstunitid;

    @Column(length = 32)
    private String secunitid;

    @Column(precision = 28,scale = 8)
    private BigDecimal firstunitnum;

    @Column(precision = 28,scale = 8)
    private BigDecimal secunitnum;

    @Column(precision = 28,scale = 8)
    private BigDecimal firstjd;

    @Column(precision = 28,scale = 8)
    private BigDecimal secjd;

    @Column(length = 32)
    private String convetrule;
}
